package com.sise.dubbo.dao;

import com.sise.dubbo.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author hao_lin
 * @data 2018/10/9 17:06
 */
@Mapper
public interface TestUserDao {

    @Select("select * from user ")
    List<User> findAll();

    @Select("select * from user where username=#{username}")
    List<User> findByUsername(@Param("username")String username);



}
